import React from 'react';
import { ListView, Icon, Badge } from 'antd-mobile';


import styles from './myFollow.css';

const myFollow = ({
  myFollowArr,
  goCompany = () =>{}
}) => {

  console.log('MyFollowListProps');
  return (
    <div className={styles.container}>

        <div className={styles.myFollowArr}>
            {
              myFollowArr.map((item,index) => {
                return (
                  <div key={item.customer.id.toString()}
                    className={styles.myFollowArrItem}
                    onClick={() => goCompany(item.customer.id)}
                    >
                    <div className={styles.name}>{item.customer.name}</div>
                  </div>
                )
              })
            }
        </div>
    </div>
  );
};

export default myFollow
